import sys   
sys.path.append('code/feature_eng')
sys.path.append('code/feature_eng')
# from alpha_101.main_101 import calc_main_101
# from alpha_191.main_191 import calc_main_191 
# from alpha_huangeven.main_huangeven import calc_main_even
# from alpha_mine.main_mine import calc_main_mine
# calc_main_101()
# calc_main_191()
# calc_main_even()
# calc_main_mine()
from feature_display import Feature_display, IC_display, Cor_display_fast
import os
# from joblib import Parallel, delayed
# def check_feature(check_root=None, feature_root=None):
#     if check_root is None:
#         check_root = r'data/cmodty/check/feature_data'
#     if feature_root is None:
#         feature_root = r'data/cmodty/my_feature/feature_data'
#     lst = sorted(os.listdir(feature_root))
    
#     def  check_func(i):
#         print(f'\n**********开始检查特征{i}')
#         F = Feature_display(check_root, i, feature_root )
#         F.test()
        
#     Parallel(n_jobs=16)(delayed(check_func)(i) for i in lst)

# calc_main_101()
# calc_main_191()
# calc_main_even()
# calc_main_mine()

# check_feature()
# check_feature(r'data/cmodty/check/feature_data_101', r'data/cmodty/my_feature/feature_data_101')
# check_feature(r'data/cmodty/check/feature_data_191', r'data/cmodty/my_feature/feature_data_191')
# check_feature(r'data/cmodty/check/feature_data_huangeven', r'data/cmodty/my_feature/feature_data_huangeven')
# check_feature(r'data/cmodty/check/feature_data_fd', r'data/cmodty/my_feature/feature_data_fd')

root_lst = [r'data\cmodty\my_feature\feature_data',r'data/cmodty/my_feature/feature_data_101', r'data/cmodty/my_feature/feature_data_191', r'data/cmodty/my_feature/feature_data_huangeven',r'data/cmodty/my_feature/feature_data_fd']
ic_dis = IC_display(end_date='2022-11-01',feature_root=root_lst)
ic_dis.info_generate()
del ic_dis

cor_dis = Cor_display_fast(end_date='2022-11-01',feature_root=root_lst)
cor_dis.cor_generate()